﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace ED.EFCore
{
	/// <summary>
	/// 获取实现IEntity的实体 并将实体注入
	/// </summary>
	public static class DbSetHandler
	{
		public static List<string>  GetDbSet()
		{
			List<string> resDbSetName = new List<string>();
			// 获取实现IEntity的所有实体 
			var assemblies = AppDomain.CurrentDomain.GetAssemblies();

            // 将实体放入集合 然后应用
            return resDbSetName;
		}
	}
}
